<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="dao.*, dao.impl.*" %>


<%
	String idStr = request.getParameter("id");
	int id = 0;
	if (idStr != null) {
		id = Integer.parseInt(idStr);
		//浏览次数加一
		LearnResMagDao nmd = new LearnResMagImpl();
		boolean result = nmd.addSeeCount(id);
	}
	
	String filePath = request.getParameter("path"); 
	RequestDispatcher dis = request.getRequestDispatcher("../../" + filePath);
    if(dis!= null){
        dis.forward(request, response);
    }
    response.flushBuffer();
%>


